<include file="__PUBLIC__/header" xmlns="http://www.w3.org/1999/html"/>
<div class="page-container">
    <!--菜单-->
    <div class="cl pd-5 bg-1 bk-gray mt-10 mb-10">
        <span class="l">
            <a href="javascript:;" onclick="qz_layer_open('新增钩子','{|U:'add'}')" class="btn btn-primary radius"><i
                    class="Hui-iconfont">&#xe600;</i> 添加钩子</a>
        </span>
        <span class="r" style="line-height:1.6em;margin-top:3px"><strong></strong></span>
    </div>
    <!--列表-->
    <table class="table table-border table-bordered table-bg mt-10 table-sort" id="table">
        <thead>
        <tr class="text-c">
            <th>ID</th>
            <th>名称</th>
            <th>描述</th>
            <th>类型</th>
            <th>开启</th>
            <th>系统</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <list from="$data" name="$qz">
            <tr class="text-c">
                <td>{$qz.id}</td>
                <td>{$qz.name}</td>
                <td>{$qz.description}</td>
                <td>
                    <if value="$qz.type eq 1">控制器
                        <elseif value="$qz.type eq 2"/>
                        视图
                        <else/>

                    </if>
                </td>
                <td>
                    <if value='$qz.status eq 1'>
                        <span class="c-red">√</span>
                        <else/>
                        <span class="c-blue">×</span>
                    </if>
                </td>
                <td class="w50">
                    <if value='$qz.is_system eq 1'>
                        <span class="c-red">√</span>
                        <else/>
                        <span class="c-blue">×</span>
                    </if>
                </td>
                <td class="text-l">
                    <if value="$qz.is_system">

                        <else/>
                        <a title="编辑" href="javascript:;" onclick="qz_layer_open('编辑钩子','{|U:'edit',array('id'=>$qz['id'])}')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a>
                        <a title="删除" href="javascript:;" onclick="del_forever(this,'{$qz['id']}','{|U:'del'}')"
                           class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>
                    </if>
                </td>
            </tr>
        </list>
    </table>
</div>
<include file="__PUBLIC__/footer"/>
</body>
</html>